<template>
  <view v-if="ruleForm.financeProceedsVos && ruleForm.financeProceedsVos.length === 0">
    <no-data/>
  </view>
  <view v-else>
    <view v-for="(item,index) in ruleForm.financeProceedsVos" :key="index">
      <view class="normal-login-container">
        <view class="item-wrap">

          <view class="item-view">
            <text>应收类型</text>
            <text>{{ handleLabel(dict.type.proceeds_type, item.proceedsTypeStr)  || '-' }}</text>
          </view>

          <view class="item-view">
            <text>核销状态</text>
            <text>{{ handleLabel(dict.type.check_state, item.checkStateStr) || '-' }}</text>
          </view>

          <view class="item-view">
            <text>应收金额</text>
            <text>{{ item.receivableAmount || '-' }}</text>
          </view>

          <view class="item-view">
            <text>已收金额</text>
            <text>{{ item.receivedAmount || '-' }}</text>
          </view>

          <view class="item-view">
            <text>代收金额</text>
            <text>{{ item.waitAmount || '-' }}</text>
          </view>

          <view class="item-view">
            <text>实收时间</text>
            <text>{{ item.paymentTime || '-' }}</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'collectionSchedule',//收款进度
  dicts:['proceeds_type','check_state'],
  props: {
    value: {
      type: Object,
      default: {},
    },
  },
  computed: {
    ruleForm: {
      get() {
        let that = this
        const proxy = new Proxy(that.value, {
          get(target, key) {
            return Reflect.get(target, key)
          }
        })
        return proxy
      },
    },
    handleLabel() {
      return function (arr, type) {
        let name = "";
        arr.map((v) => {
          if (type == v.value) {
            name = v.label;
          }
        });
        return name;
      };
    },
  },
  data() {
    return {};
  },
  created() {
  },
  mounted() {
  },
  methods: {},
};
</script>

<style scoped lang=""></style>


